<script setup lang="ts">
import { useMemberStore } from '@/stores'

const memberStore = useMemberStore()
</script>

<template>
  <view class="my">
    <view>会员信息：{{ memberStore.profile }}</view>
    <button
      plain
      size="mini"
      type="primary"
      @tap="
        memberStore.setProfile({
          nickname: '程序员琪辉',
        })
      "
    >
      保存用户信息
    </button>
    <button plain size="mini" type="warn" @tap="memberStore.clearProfile()">清理用户信息</button>
  </view>
</template>

<style lang="scss">
//
</style>
